package com.gykj.tap.service;

import com.serotonin.modbus4j.exception.ErrorResponseException;
import com.serotonin.modbus4j.exception.ModbusInitException;
import com.serotonin.modbus4j.exception.ModbusTransportException;

/**
 * 读取数据
 * 
 * 读取输入【线圈】状态 [01 Coil Status 0x]类型 开关数据
 * @author rohto
 *
 */
public interface IReadCoilStatsuService {
	/**
	 * 读取[01 Coil Status 0x]类型 开关数据
	 * @param host TODO
	 * @param port TODO
	 * @param slaveId slaveId
	 * @param offset 位置
	 * 
	 * @return 读取值
	 * @throws ModbusTransportException 异常
	 * @throws ErrorResponseException 异常
	 * @throws ModbusInitException 异常
	 */
	public Boolean readCoilStatus(String host, int port, int slaveId, int offset) throws ModbusTransportException, ErrorResponseException, ModbusInitException ;
}
